#ifndef HPLC_QINFINE_PARSECOMMONSYSTEMPACKET_H
#define HPLC_QINFINE_PARSECOMMONSYSTEMPACKET_H

#include <QObject>
#include "modulehplcdefine.h"

namespace hplc
{
namespace qinfine
{

class HplcQinfineProtocolCommonData;
class HplcQinfineParseCommonSystemPacket : public QObject
{
    Q_OBJECT

public:
    HplcQinfineParseCommonSystemPacket(HplcQinfineProtocolCommonData &data, hplc::CommonParam &param, QObject *parent = nullptr);

    void parseSet(quint8 pfc, char *data);
    void parseGet(quint8 pfc, char *data);

signals:
    void parseCompleted(int id, const QVariant &data);

    void setModel(quint8 model);

protected:
    HplcQinfineProtocolCommonData  *m_d = nullptr;
    hplc::CommonParam   *m_param = nullptr;
};

} // qinfine
} // hplc

#endif // HPLC_QINFINE_PARSECOMMONSYSTEMPACKET_H
